const initialState = {
    // 基本信息
    user: {},
  }

  export const profile = (state = initialState, action) => {
    const {type , payload} = action
    switch(type) {
        case 'profile/user':
            return {
                ...state ,
                user: {...payload}
            }
        default : 
            return state
    }
  }